﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="CampanyCMS.WebUI.Admin.TemplatesMgnt.list" %>

<%@ Register TagPrefix="cc1" Namespace="COM.ZTE.TPG.App.UI.WebForm" Assembly="COM.ZTE.TPG.App.UI.WebForm" %>
 
<%@ Register Assembly="My97" Namespace="My97" TagPrefix="cc2" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>ProductsList</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../css/cssCn1.css" type="text/css" rel="stylesheet">
		<LINK href="../../css/cssCn.css" type="text/css" rel="stylesheet">

</head>
<body ms_positioning="GridLayout">
    <form id="Form1" method="post" runat="server">
    <table id="tb_content" cellspacing="0" cellpadding="0" align="center">
        <tbody>
            <tr>
                <td>
                   
                    <table class="tb_searchbar" cellspacing="1" width="100%">
                        <tbody>
                            <tr>
                                <td class="td_head" colspan="5">
                                    请填写查询条件
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title" nowrap width="15%">
                                    模板名
                                </td>
                                <td class="detail" colspan="3">
                                    <asp:TextBox ID="txtTemplateName" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" colspan="4">
                                    <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="button" OnClick="btnSearch_Click">
                                    </asp:Button><asp:Button ID="btnAdd" runat="server" Text="新增" CssClass="button" OnClick="btnAdd_Click">
                                    </asp:Button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <cc1:ztegrid id="dgNews" runat="server" CssClass="tb_datalist" PageChange="TextBox" Width="100%"
								AllowPaging="True" PageLanguage="Chinese" IsAllowPaging="True" BorderWidth="0px" CellSpacing="1"
								AutoGenerateColumns="False" CacheData="ServerCach" SortMode="Total" PageCSS="scrollButton" OnItemCommand ="dgNews_ItemCommand"
								 OnItemDataBound="dgNews_ItemDataBound"
								BorderStyle="Solid">
								<AlternatingItemStyle CssClass="tr_even" BackColor="#F7F9FE"></AlternatingItemStyle>
								<FooterStyle BackColor="#E8E8E8"></FooterStyle>
								<ItemStyle BorderColor="White" BackColor="White"></ItemStyle>
                        <Columns>
                            <asp:BoundColumn Visible="False" DataField="Template_ID" HeaderText="Template_ID"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Template_Name" HeaderText="模板名"></asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="模板图">
                                <HeaderStyle Width="100px" />
                                <ItemTemplate>
                                    <asp:ImageButton ID="img" Height="200" Width="200" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:BoundColumn DataField="Template_Floder" HeaderText="模板文件夹"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Limit_Num" HeaderText="模板等级"></asp:BoundColumn>
                            
                            <asp:TemplateColumn>
                                <HeaderStyle Width="100px" />
                                <HeaderTemplate>
                                    操作
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="btnModify" runat="server" 
                                        CommandName="Modify">修改</asp:LinkButton>
                                    <font face="宋体">&nbsp;</font>
                                    <asp:LinkButton ID="btnDelete" OnClientClick="javascript:return confirm('确定要删除该模板吗?');" runat="server" CommandName="Delete">删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                        </Columns>
                        <HeaderStyle CssClass="tr_title"></HeaderStyle>
                        <SelectedItemStyle CssClass="tr_selected"></SelectedItemStyle>
                        <PagerStyle CssClass="tr_pagenumber"></PagerStyle>
                    </cc1:ZteGrid>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>
